Exception handling on login

Added the AccessDeniedException class and made the User service throw it if an error_code is returned. The error message is added to the exception.