changed mail validation and added pubkey field for adduser