Fix for user registration