protected login from exceptions when no user is found
Taped some ducts in order to prevent exceptions during login
surrouned potentially exception-y db queries