now it handles empty user input