Spring Security 6, authentication works for users roles BUT not for admin roles

Hello my name is Andre and I am having trouble with a Spring Boot Project with Spring Security using two different login pages. The main problem right now is that the application is throwing this error: o.s.s.a.dao.DaoAuthenticationProvider : Failed to authenticate since password does not match stored values

Both users and admins are stored in Postgres, have implemented getAuthorities()
Users login just fine BUT Admins fail to authenticate, I have a CustomUserDetails and CustomUserDetailsService Class
My code:

class MuliSecurityConfiguration
{
    @Autowired
    private CustomUserDetailsService customUserDetailsService;


    public MuliSecurityConfiguration(CustomUserDetailsService customUserDetailsService)
    {
        this.customUserDetailsService = customUserDetailsService;
    }



    @Bean
    public AuthenticationManager authenticationManager(AuthenticationConfiguration authenticationConfiguration) throws Exception
    {
        return authenticationConfiguration.getAuthenticationManager();
    }

    @Bean
    public PasswordEncoder getPasswordEncoder() { return NoOpPasswordEncoder.getInstance(); }

    @Bean
    public SecurityFilterChain filterChainRed(HttpSecurity http) throws Exception
    {

        http.csrf((csrf) -> csrf.disable());
        http
                .authorizeHttpRequests((authorize) -> authorize

                        .requestMatchers("/admin", "/admin/managerLogin", "/admin/managerError").permitAll()
                        .requestMatchers("/CSS/**").permitAll()
                        .requestMatchers("/IMAGES/**").permitAll()
                        .requestMatchers("/JAVASCRIPT/**").permitAll()
                        .requestMatchers("/admin/managerHome").hasRole("ADMIN")
                        .anyRequest().authenticated()
                )

                .formLogin(formLogin ->
                        formLogin
                                .loginPage("/admin/managerLogin.html").permitAll()
                                .loginProcessingUrl("/admin/managerLogin").permitAll()
                                .defaultSuccessUrl("/admin/managerHome", true)
                                .failureUrl("/admin/managerError.html").permitAll()
                )

                                .logout(logout -> logout
                                .logoutUrl("/admin/managerLogout.html").permitAll()
                                .logoutSuccessUrl("/admin/managerLogin.html")
                                .invalidateHttpSession(true)
                                .deleteCookies("JSESSIONID")
                                .permitAll()
                                );
        return http.build();
    }


    @Bean
    public SecurityFilterChain filterChainBlue(HttpSecurity http) throws Exception
    {
        http.csrf((csrf) -> csrf.disable());
        http.authorizeHttpRequests((authorize) -> authorize

                        .requestMatchers( "/", "/user/index", "/user/error").permitAll()
                        .requestMatchers("/CSS/**").permitAll()
                        .requestMatchers("/IMAGES/**").permitAll()
                        .requestMatchers("/JAVASCRIPT/**").permitAll()
                        .requestMatchers("/user/home").hasRole("EMPLOYEE")
                        .anyRequest().authenticated()
        )
                .formLogin(formLogin ->
                        formLogin
                                .loginPage("/user/index.html").permitAll()
                                .loginProcessingUrl("/user/index").permitAll()
                                .defaultSuccessUrl("/user/home", true)
                                .failureUrl("/user/error.html").permitAll()

                )

                .logout(logout -> logout
                        .logoutUrl("/user/logout").permitAll()
                        .logoutSuccessUrl("/")
                        .invalidateHttpSession(true)
                        .deleteCookies("JSESSIONID")
                        .permitAll()
                );

        return http.build();
    }
 }

}

public class CustomUserDetails implements UserDetails 
{
    private BigInteger employeeid;
    private String role;
    private boolean enabled;
    private String username;
    private String jobtitle;
    private String firstname;
    private String lastname;
    private String phone;
    private String email;
    private String password;
    private Timestamp datehired;
    private Timestamp datefired;

    public CustomUserDetails(BigInteger employeeid, String role, boolean enabled, String username, String jobtitle,
                             String firstname, String lastname, String phone, String email, String password,
                             Timestamp datehired, Timestamp datefired)
    {
        this.employeeid = employeeid;
        this.role = role;
        this.enabled = enabled;
        this.username = username;
        this.jobtitle = jobtitle;
        this.firstname = firstname;
        this.lastname = lastname;
        this.phone = phone;
        this.email = email;
        this.password = password;
        this.datehired = datehired;
        this.datefired = datefired;

    }

    public BigInteger getEmployeeid(){return employeeid;}

    public String getRole() {return role;}

    public void setRole(String role){this.role = role;}


    @Override
    public Collection<? extends GrantedAuthority> getAuthorities()
    {
        List<GrantedAuthority> list = new ArrayList<GrantedAuthority>();
        list.add(new SimpleGrantedAuthority(getRole()));
        return list;
    }

    @Override
    public String getUsername() {return username;}

    public String getJobtitle() {return jobtitle;}

    public String getFirstname() {return firstname;}

    public String getLastname() {return lastname;}

    public String getPhone() {return phone;}

    public String getEmail() {return email;}

    @Override
    public String getPassword() {return password;}

    public Timestamp getDatehired() {return datehired;}

    public Timestamp getDatefired() {return datefired;}

    @Override
    public boolean isAccountNonExpired() {return true;}

    @Override
    public boolean isAccountNonLocked() {return true;}

    @Override
    public boolean isCredentialsNonExpired() {return true;}

    @Override
    public boolean isEnabled() {return true;}

    @Override
    public String toString()
    {
        return "employeeid:" + employeeid + "," +
                "role:" + role + "," +
                "enabled:" + enabled + "," +
                "username:" + username + "," +
                "jobtitle:" + jobtitle + "," +
                "firstname:" + firstname + "," +
                "lastname:" + lastname + "," +
                "phone:" + phone + "," +
                "email:" + email + "," +
                "password:" + password + "," +
                "datehired:" + datehired + "," +
                "datefired:" + datefired ;
    }
}


@Service
public class CustomUserDetailsService implements UserDetailsService
{
    User someUser;

    @Autowired
    private UserRepository userRepository;

    public CustomUserDetailsService(UserRepository userRepository) {
        this.userRepository = userRepository;
    }

   
    @Override
    public CustomUserDetails loadUserByUsername(String username) throws UsernameNotFoundException
    {
        someUser = userRepository.findByUsername(username);
        if (someUser == null)
        {
            System.out.println("From CustomUserDetailsservice: Username or Password not found!");
            throw new UsernameNotFoundException("Username or Password not found!");
        }
        
        System.out.println("Custom User Details 2: " + someUser.toString());

        return new CustomUserDetails(someUser.getEmployeeid(), someUser.getAuthorities(), someUser.isEnabled(), someUser.getUsername(), someUser.getJobtitle(),
                someUser.getFirstname(), someUser.getLastname(), someUser.getPhone(), someUser.getEmail(), someUser.getPassword(),
                someUser.getDatehired(), someUser.getDatefired());
    }


}

I am using Spring Boot v3.3.0-RC1 and Spring Security 6.1.6. I am using a Windows 11 HP laptop, Postgres 16 on a local host, regular HTML web pages via Tomcat Server (NOT Thymeleaf or any other templating engine) and the Fetch API to retrieve data from the database.

Desired Behavior: Both users/employees and admins should be able to login and get to their respective home pages

Specific Problem: admin login does not work because of failed authentication for the admin, password does not match stored values
BUT I checked and the submitted password does match the password in the database

Specific Error: Web App goes to the error page which says “Bad Credentials”

Any ideas will be appreciated about why one set of users can login but another set of users with a different set of roles can’t get authenticated when all types of users are stored in the same database table and all types of users are eighter an EMPLOYEE OR AN ADMIN

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật