Login servlet logic error reverted