Simple auth functionality.