add form_validation function, and complete login and logout, validation not via database
complete function of cat_list to show category of goods