killed swap file and added cookie to login.php