add logic to users controller