Validation on Register user page added, encrypt password function added too.