added logic to create a new user