adding model and login cookie sessions