Added IOC and implement the repository mock up for register and login