Implement login function in SCUserStore.swift