rails login created by reffering http://guides.rubyonrails.org/