removed redundant error checking in servlets