## Change password

@if (changePasswordForm) {
Current Password
@if (f['currentPassword'].invalid && (f['currentPassword'].dirty || !f['currentPassword'].untouched )) {
@if (f['currentPassword'].hasError('required')) {

Password is required

}
}
New Password
@if (f['newPassword'].invalid && (f['newPassword'].dirty || !f['newPassword'].untouched )) {
@if (f['newPassword'].hasError('required')) {

Password is required

} @if (!f['newPassword'].hasError('required')) {
Must have at least 1 number!
Must be at least 8 characters long!
Must contain at least 1 in capital letters!
Must contain at least 1 lowercase letter!
Must contain at least 1 special character!
}
}
Repeat password
@if (f['confirmPassword'].invalid && (f['confirmPassword'].dirty || !f['confirmPassword'].untouched )) {
@if (f['confirmPassword'].hasError('required')) {

Repeat password is required

} @if (f['confirmPassword'].hasError('passwordMismatch')) {

Passwords do not match

}
}
}