Starts authentication loop