validation problem

I ahve a very strange problem.

When I do not fill the email address of the user form the error apears twice

I have at controller

...$model=new Users;


at model





What is wrong?

i think the validation rule for email assumes that it must be required so using both ‘required’ and ‘email’ would be redundant. try removing the required rule for email

I did it and it worked.

I have also these rules at company model and it has no problem