Implemented resetPassword and resetPasswordConfirm methods.