refactor rspec, implement factorygirl, include flash error messages