Added the create_user function and tested it