Fixed broken FORM-based authentication