Makes category auto-populate based on user input