initial js validation for sign in