@if (hasControlError('email', 'required')) {

Email address is required.

} @else if (hasControlError('email', 'email')) {

Enter a valid email address.

}
@if (hasControlError('password', 'required')) {

Password is required.

} @else if (hasControlError('password', 'minlength')) {

Password must be at least 8 characters long.

}