Added sample register method to controller