set database_password to null
added helpers for generating and showing form errors
removed dup code, added comments
fixed form data formatting, passed form errors to template