made static session by clicking on login and fix error