Created an Factory for Auth