Several fixes to log in, assets and paths (baseurl).