changing authentication to angular