login page controller and tests