Added login page
Fixed authentication