Added login page, implemented some logic for this one.