Fix bug move try catch on the resetPassword method call and so add return statement