check if user has already logged in