updated onmiauth controller