def nonb(message, error_message):
x = input(message)
while len(x.strip()) == 0:
x = input(error_message)
UserName = nonb(''' Enter Username:=> ''', ''' Enter a valid Username:=> ''')
time.sleep(1)
PassWord = nonb(''' Enter Password:=> ''', ''' Enter a valid Password:=> ''')