Reg form inline validation

Added js for inline form validation and modified the reg form accordingly.