added encryption to the class to secure passwords