admin authentication functionality implemented