Added security so you cannot create a task unless you are logged in