Fixed errors found by resharper and added validation for contact action.