added password validation for resetPassword template