add encrypt for login and register