Added encryption when sending register/login details