implements login page toggling