Added api for getUser id, and sign in via remote db