added handling for invalid signup