User registration fixes