Changed SessionController to inherit from ApplicationController