Removed a redundant variables declaration in registration controller.