added user auth
updated example for user auth