redirect to main page after resetting the password