Register user API endpoint