added auto-redirect to the main page after account recovery is complete