Implement custom authentication provider to check if user already exists in database or not