Tim

attempted to write some tests
but I can't get Capybara to work properly, so I can't sign in in rspec

other than that please review

will close and submit a new pull request if I get Capybara to work