added login error catch

@dartelov Implemented error handling for login and added a general error catch mechanism.

Merge request reports

Loading