Implemented a Custom UserDetailsService for retrieving users from the database