Added login functionality to frontpage.