put the if statement for username input value within the html input tag