Added check for Player Object

A check for player object is added to verify that a player has in fact been logged in rather than a rouge access attempt on the admin panel.