Added authorization for users and admin panel