construct login message + test