Differentiate between server error and wrong credentials