enabled login system through cookie and created login page