Unsure why I get 502 error. It seems like the database hates me. All my things get executed on the server because I see it in the logs. I'll add quotes around email when doing the query into the database. Prob won't do anything.