Fixed mistake on setting cookie on user create