check_admin function was not working as intended. Added a local buffer to store entered password to get more dependeble results when testing for correct password.