Changed signature encoding method to prevent logout from ocurring.