Add validation to auth widget