correcting user registration