added some login functionality to the page