Update auth_user.php

refactoring and redirect if there is an error.