Add error handling for empty posts to LoginResource (bug 862873)