added session and cookies creation in login function !!
!!