authentication with jquery plugin for user cookier