Added UserLoggedInException and LockedAccountException. Added more validations during authentication and some small changes how the exceptions are handled.