Fix TN3270 out of bounds write

write to out of bounds of buffers if the username or password does not provided