fixed user authentication and updated jquery