Login design problem

Hi, I am trying to implement the tutorial on this site.
Dev Trademarks - Alter … -on-Rails/

Everyone seems to be going fine except for the view for the login

<% if @flash[:message] %>

<%= @flash[:message] %>
<% end %>
<% if @flash[:error] %>
<%= @flash[:error] %>
<% end %>

<%= form_tag :action => ‘process_login’
%>
Username: <%= text_field “user”, “username” %>
Password: <%= password_field “user”, “password” %>
<%= submit_tag %>
<%= end_form_tag %>

FOr some reason I am having a nil error for
<% if @flash[:message] %>

<%= @flash[:message] %>
<% end %>
<% if @flash[:error] %>
<%= @flash[:error] %>
<% end %>

Is the syntax wrong?

Thanks,
Kane

@flash should be flash
I think that changed quite some time ago and some
old tutorials still have it @flash.
same goes for @params, this is params now