registration validation and password encod added