imaginary login function constructed for initial set of ideas. Assigns the message to the current user in the displaySpace. Still needs to have blank messages rejected.
preliminary validation finished. Doesn't display a warning if the message is blank, but at least it doesn't append it to the displaySpace now.
tightened functions. Removed obsolete debugging code. created warning function for validation triggers.
Changed event listener to keydow instead of keyup. Previous version using keyup meant that keydown would trigger closing of alert box and return focus to the textbox, which would then trigger the entire thing again.
fixed event listener in Firefox (which requires event to be passed in the anonymous? function). Cleaned up comment coding and removed more debugging echoes.