further implementation of admin authentication, contributes towards #4