bugfix: empty user input and null value in hash