Changing log level & passing correct message in throw statement
Changes to error logging and HTTP status codes for user management