added validation to input. added two kinds - numeric and email
added alert class to highlight errors in css
few changes