Added FactoryGirl for tests. Added provider validation to user model