fixed user creation page, and added error checking