show validation errors on register
validate email password on register
removed global var
missing return