Getting error TypeError: this.toLowerCase is not a function

this is the code

code executed successfully till the line console.log(password_value) then got the error
and then getting the error