no reason to 2 UserDetails implementations,just use your email to find your username of user,but your email must be unique.then use username password way to login