Auth: Added undefined validation