calling login method fixed in login cookie