Code:
if (welcomed != 1) { 


You're checking "if the text string 'welcome' is not the text string '1'", which it never will be.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!