Implemented Authentication on the front-end