Update Admin.php

Removes duplicate code and adds one more rule for ```$action == 'create'```