Added order form email validation

Consolidated JavaScript from username validation and push it into a new
invalidErrorMsgHandler method.