updated regex for password validation and left comments for the previous inferior regex