Update LoginEncoder.java

Allow for payload-less responses