Bugfix: When empty form button was disabled. Now checks if form is valid.