added basic validation for diary input fields
fixed button group input name
Merge pull request #5 from Harti/diary-validation

Diary validation