Created Auth factory to handle signup and signin