Added check for user logged in in API for spot page