Form processing and validation added