added check on servermethod for username