logic fixes

Signed-off-by: owwlo <owwlo@163.com>
Merge branch 'login-page' of https://github.com/lisajluo/smg-server into login-page