Fixed the email authenticate query-string error and the authenticate successfully will login at the same time.