Fixed user registration