check password before delete, implemented add/edit category to record and other fixes

update add/ view/ delete functions