added messages to return messages assigned to page
apply messages to template
bugfix
initial commit gender validator
tabs to spaces
added type conversion to handle normal arrays
bugfix: prevent leading/trailing single quote if message does not contain inline functions, replaced str_replace with addcslashes