added exception handling for user account