Added string validation for password complexity