extra if. We need use form validation to not get empty title