Added jquery condition to fix mobile nav
fixed some error validations