Adding jquery and login functionality