modify create user functionality