Fix compilation errors in login package