Added IoC configuration and changed account controller login to get userName from userEmail