using factory girl, facing problems in login validations