Add inline JS to check if password has been filled in.

If not, prevent form from submitting and add an inline error message.

See #4.