Removed redundant authentification code