adding authentication for admin page(vanilla)