title: Authlogic NoMethodError in UserSessionsController#create while login
body: <p>I did same as show in authlogin <a href="https://github.com/binarylogic/authlogic_example" rel="nofollow">example</a>. User is created successfully and session also maintained and logout also working fine. After logout I try to login again the application getting following error</p>
  
  <p><strong>NoMethodError in UserSessionsController#create</strong> </p>
  
  <pre><code>undefined method `[]' for false:FalseClass
  </code></pre>
  
  <p>In user_session controller</p>
  
  <pre><code>app/controllers/user_sessions_controller.rb:13:in `create'
  </code></pre>
  
  <p>UserSessionController Code</p>
  
  <pre><code>...     
   def create
     @user_session = UserSession.new(params[:user_session])
     if @user_session.save
       flash[:notice] = "Login successful!"
       redirect_back_or_default user_path(current_user)
     else
       render :action =&gt; :new
     end
   end
  ...
  </code></pre>
  
  <p>I am using </p>
  
  <ul>
  <li>ruby -v ruby 1.9.2p180  </li>
  <li>rails -v Rails 3.1.3  </li>
  <li>authlogic (2.1.6)</li>
  </ul>