Added users and login page, with some funny logic.