complete sign in and user api