Added a login page and test code.