Adding authentication, jquery ui