I'm using Symfony 2 security system. 

When some user trying to login, I want to additionally check whether user's field "activated" is true. If not, error message appears: "You have to activate your account first".

How can i implement this feature?