Better layout on main.php

The button and the input box were changed.
The error message is now displayed as it should.