added activerecord to specs and tested login form