wrote authentication test for capybara