Implemented whoami method on the server side