fixed syntax error in user creation
multiple logic errors. should be corrected