stop crash when invalid login/data size is send...

Tryfix for crashes when invalid login data is received and when long
ECM’s are received.