Fix Bug: login error from home page