moved SessionsHelper methods to ApplicationHelper
Minor edit to index.html.erb