I am using an html form that queries a DB to check security. It is valid for the password to be NULL, but the user should get a warning that the password is blank and that it should be updated.
Every time a page is loaded, I want to warn is the password is NULL.
My question is: where is the best place to do this checking. the layout file is where the message is shown, but I don't think the layout file should be querying the DB.