Completed login.php and loopback.php. Needs linting.