adding permanent cookie based login