Create validations.js

validations for login and register