rspec test login/nonlogin has error