Code fixes for social auth