disabling registration form inputs and button when submitting the form