Fix login decorator issue.