Register a user using API