fix for when user enters bad data