Emiting userInfo when userInfo operation returns a valid user. Renamed main.js to login.js