Add API endpoint for user registration