Complete the function of create_new_user