def input_value(): user_name = username.get() pass_word = password.get() if type( user_name ) == str and user_name != "": #actually this part goes to the db to check username/password print("Username: "******"utf-8") #key = b'pRmgMa8T0INjEAfksaq2aafzoZXEuwKI7wDe4c1F8AY=' #cipher_suite = Fernet(key) #ciphered_text = cipher_suite.encrypt(pass_word) #print("Password: "******"Invalid input", "Incorrect Username/Password")