Creating a user registration API