Implemented server side authentication.