commit 20130604 add login process to main.php