Modified resetPassword() and resetCode() in forget model and removed unnecessary code blocks