corrected connect and login