fixed error handling for create user page