handling and logging exceptions
changing error message for user not found
identation