check user login api.