Clean up.
Addition of sessionId attribute and accompanying getter and setter.
Addition of updateAuthenticationValues() function.
Addition of generateHash(), updateSession(), clearSession() functions.
updateSession() call added to login() function. Moved processForms()
function. Comments added.