fixed not working if statement

it just wasn't executing; no user was created, now it should be fine.