Added minimum duration constant and some validation to add learning event interface while modifying the validation in the edit interface as well. Closes issue #310.