The contents (text) in txt_userid contains illegal characters to be translated to integer. So ensure that you're inputting a proper number.
Also instead of using Parse, use
TryParse[
^] to check if the conversion can be done. If it cannot be done, inform the user to correct the data.