fix krs query, fix login view, fix, add some improvement