implemented basic account update functionality; note that this would be better as a proper form to use client-side form validation library