starts and logs in correctly