Add naive form validation.

This fixes https://github.com/mex/rent-it-client/issues/27. It also adds some flash messages to the site, but I've decided to work more thoroughly with notification messages in a separate pull request.