fixed condition issue in user/register