Add User Authentication

I have had troubles with my sessions controller 
can we use Ruby19 hash syntax?