fix user name lost on refresh, and update e2e tests to reflect client side validation