update/register buttons only enabled when form is valid