added before filters require_login and try_cookie_login to ApplicationController