Created the controller class and host the security.component service there to made things simple