Added authorization functions on serverside