#login:[zhang] - merge page login to index and  optimize the login code