Function for only allowing specific usernames to do a task.