Added UserLoggedInException and LockedAccountException. Added more validations during authentication and some small changes how the exceptions are handled.
Merge pull request #102 from pedroigor/master

Handling authentication exceptions and test case