assigned authentication to the admin and user controller