added different error handling for users
added different error handling for users