Add Cookies,ErrorHander and worked out session