Made login page work with cookies

Bug tested the handler. Now it works fine. Also made a temporary login
page. Pretty shoddy work. Will focus on design later on.