implemented MessageParser in authentication