code for authenticate REST