remove unused div session.invald
remove [:data] to take error into consideration
remove console.log