Added function to check if an element exists (with xpath); minor code improvements
Login-test improvement
Cookies are now stored after the account is logged in