Updated action.php

Email validation wasn't valid due to feature deprecation. This single line update fixes that.