Client-side validations. Started formatting