Added validateForm function, changed some styles