fixed the re directs for the registration fails for password mismatch
and user exists with that name