Update /lib/login.php

Added initial code to /lib/login.php file