fix login and dowloading