Prepare create_user function