[refactoring] acceptance test refactored, minor error code added to login response