bug fixes on update method, and form validation set_message
bug fix on sql insert
optimisation on host validation