fixed the issues with cookies and login status file added;code cleanup required