Added conditional statement to display user info