refactored the signin form.controller and also some of the rspec tests