fixed comipliation error in Register.java