added doc/login-function.php example