fixing some of the bugs for edit/create new banned ip