Added onClick function with if statement that displays username when login button is pressed