Credentials loop implemented