js client side validations for login js erb