updating create user functionality