Required fields are checked but are giving warnings