fixing reset password to use member from database rather than cookie