asynchronous method is used for forgotpasswprd and corrected the sql