fixed users_controller where user.id attribute wasn't attached to session information. Fixed private method in application_controller. Corrected end tags. Fixed spelling of flash in sessions_controller