Fixed an issue where a user could get around the authetication system.