Added authentication and registration calls to the server