The login/logout finally works. A var_dump() is added until more testing is done