fixed the findAll for login and registration controller