Added code in API to create new user