Setting Token based authentication