debugging signin, adding indexes