Authentication & authorization functions

read README