sort out some issues with admin page validation and append slash