Fix a 500 on user registration