Moved Upload and login stuff to commands