S-194724: disable submit and register buttons if they shouldn't be active

S-194724: disable submit and register buttons if they shouldn't be active