Added logic for before_filters for user_login and cookie verification