Reimplement authentication mechanism with angular