adding code to log new user in upon successful creation