Check user login status.