adding password and email checks with regex.