we can revised it to this one po 
```php
 if (!has_content($password)) {
    throw new Exception('Fields with * are required.');
 }

if (!validate_min($password, 6)) {
  throw new Exception('Password must be at least 6 characters');
}
$info['password'] = md5(ENC_KEY . $password);
```