Adding username to session and using it to personalize error messages