Solved a problem with required fields in forms