Add javascript signup validations with minor bug fixes