Login is changed to use session

Removed the cookie based login implementation