fixing server side validation, adding network functionality