user registration fixes