Implemented Authentication on the client side and server side.