Added login page, logout. Some fixes.