Add form validations (#94)

Alerts will be replaced with flash messages (#62).